<extend name="public@base"/>
block(name='main')
    .wrap.js-check-wrap
        ul.nav.nav-tabs
            li.active
                a(href="{:url('slide/index')}") 幻灯片列表
            li
                a(href="{:url('slide/add')}") 添加幻灯片
        php
        foreach(name='slides', item='vo')
        table.table.table-hover.table-bordered.margin-top-20
            thead
                tr
                    th(width='50') ID
                    th 幻灯片
                    th 备注
                    th(width='160') {:lang('ACTIONS')}
            tbody
                <foreach name="slides" item="vo">
                    tr
                        td {$vo.id}
                        td {$vo.name}
                        td
                            | {$vo.remark}
                        td
                            a.btn.btn-xs.btn-primary(href!="{:url('slide/edit',array('id'=>$vo['id']))}") {:lang('EDIT')}
                            a.btn.btn-xs.btn-primary(href!="javascript:parent.openIframeLayer('{:url('slideItem/index',array('slide_id'=>$vo['id']))}','管理 {$vo.name} 页面',{});") 管理页面
                            a.btn.btn-xs.btn-danger.js-ajax-delete(href!="{:url('slide/delete',array('id'=>$vo['id']))}") {:lang('DELETE')}
                </foreach>